﻿using System;
using System.ComponentModel.DataAnnotations;

namespace QDT.Core.Members
{
    public class UserSta
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int UserId { get; set; }

        /// <summary>
        /// 总的借款金额
        /// </summary>
        public decimal BorrowAmount { get; set; }
        /// <summary>
        /// 成功借款
        /// </summary>
        public int SuccessDealCount { get; set; }
        /// <summary>
        /// 在投借款
        /// </summary>
        public int ProgressDealCount { get; set; }
        /// <summary>
        /// 还清借款
        /// </summary>
        public int RepaidDealCount { get; set; }

        /// <summary>
        /// 已赚利息
        /// </summary>
        public decimal LoadEarnings { get; set; }
        /// <summary>
        /// 待回收本金
        /// </summary>
        public decimal LoadWaitRepayMoney { get; set; }
        /// <summary>
        /// 待回收利息
        /// </summary>
        public decimal LoadWaitRepayEarnings { get; set; }
        /// <summary>
        /// 累计投资额
        /// </summary>
        public decimal TotalLoadMoney { get; set; }

        public UserSta()
        {
        }

        public UserSta(User user) : this()
        {
            UserId = user.ID;
        }
        
    }
}
